<script setup lang="ts">
import { useRouter, useRoute } from "vue-router";
const router = useRouter();
const route = useRoute();
console.log(route.query);
function jump() {
  router.push({
    name: "helloWorld",
    params: {
      username: "eduardo",
    },
  });
}
</script>

<template>
  <h1>个人中心</h1>
  <button @click="jump">跳转到helloworld</button>
</template>

<style scoped></style>
